package net.cyan.commons.log;

import java.io.PrintWriter;

/**
 * 
 * @author camel
 * @date 2008-12-10
 */
public class WriterPrintable implements Printable, PrintableProvider
{
    private final PrintWriter out;

    public WriterPrintable(PrintWriter out)
    {
        this.out = out;
    }

    public void println(String s)
    {
        out.println(s);
    }

    public Printable getPrintable()
    {
        return this;
    }

    public void close()
    {
        out.close();
    }

    public void flush()
    {
        out.flush();
    }
}
